home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 13
/
AMIGAplus Sonderheft 13 (1998)(ICP)(DE)[!].iso
/
rexx
/
setconfig.bed
< prev
next >
Wrap
Text File
|
1997-12-03
|
710b
|
43 lines
/*
** $VER: SetConfig.bed 1.0 (14.01.96)
**
** Load a configuration according to the filename extension
**
** Written by Marco Negri
*/
OPTIONS RESULTS
GetFileInfo
PARSE VAR RESULT . . '"'name'"'
IF NAME ~= "" THEN DO
dotpos = LASTPOS('.', name)
IF dotpos = 0 THEN
ext = ""
ELSE
ext = SUBSTR(name, dotpos+1)
END
SELECT
/*
** You can insert here how many extensions you want:
**
** For example:
**
** WHEN (ext = 'asm') | (ext = 's') | (ext = 'a') THEN DO
** OpenPrefs "BED:Support/Assembler.prf"
** OpenDefinitions "BED:Support/Assembler.dfn"
** END
**
*/
WHEN (ext = 'c') | (ext = 'h') THEN DO
OpenPrefs "BED:Support/SAS_C.prf"
OpenDefinitions "BED:Support/SAS_C.dfn"
END
END
END